from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By


service = Service(executable_path="E:\python\python38\chromedriver.exe")
driver = webdriver.Chrome(service=service)
driver.get("http://121.43.169.97:8848/pageA.html")
driver.find_element(By.ID,"userA").send_keys("admin")
driver.find_element(By.ID,"passwordA").send_keys("123456")
driver.find_element(By.CSS_SELECTOR,"#telA").send_keys("1861111111")
driver.find_element(By.CSS_SELECTOR,".emailA.dzyxA").send_keys("1861111111@qq.com")


#间隔3秒修改电话号码
sleep(3)
driver.find_element(By.CSS_SELECTOR,"#telA").clear()
driver.find_element(By.CSS_SELECTOR,"#telA").send_keys("18600000000")
#间隔3秒点击注册
driver.find_element(By.CSS_SELECTOR,"button").click()
#间隔3秒关闭浏览器
sleep(3)
driver.quit()